import request from '@/utils/request'

// 查询产废台账列表
export function listCftzInfo(query) {
  return request({
    url: '/solidProdution/cftzInfo/list',
    method: 'get',
    params: query
  })
}

// 查询产废台账详细
export function getCftzInfo(cftzId) {
  return request({
    url: '/solidProdution/cftzInfo/' + cftzId,
    method: 'get'
  })
}

// 新增产废台账
export function addCftzInfo(data) {
  return request({
    url: '/solidProdution/cftzInfo',
    method: 'post',
    data: data
  })
}

// 修改产废台账
export function updateCftzInfo(data) {
  return request({
    url: '/solidProdution/cftzInfo',
    method: 'put',
    data: data
  })
}

// 删除产废台账
export function delCftzInfo(cftzId) {
  return request({
    url: '/solidProdution/cftzInfo/' + cftzId,
    method: 'delete'
  })
}

// 导出产废台账
export function exportCftzInfo(query) {
  return request({
    url: '/solidProdution/cftzInfo/export',
    method: 'get',
    params: query
  })
}